import { createRouter, createWebHashHistory } from 'vue-router'
const index =() => import('../components/index')
const login =() => import('../components/login')

const routes = [
  {
    path: '/',
    name: 'login',
    component: login
  },
  {
    path: '/index',
    name: 'index',
    component: index
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
